make a function to print the table of a given number n